package com.github.shuaidd.model.repository;

import org.activiti.app.domain.runtime.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentEntityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKeyWithBLOBs(Comment record);

    int updateByPrimaryKey(Comment record);

    Long countByTaskId(String taskId);

    long countByProcessInstanceId(String processInstanceId);

    List<Comment> findByTaskId(@Param("taskId") String taskId, @Param("orderFormat") String orderFormat);

    List<Comment> findByProcessInstanceId(@Param("processInstanceId") String processInstanceId, @Param("orderFormat") String orderFormat);

    int deleteAllByProcessInstanceId(@Param("processInstanceId") String processInstanceId);
}
